package com.learn.dao;

import com.learn.entity.Person;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface PersonMapper {
    /**
     * mybatis-spring-boot-starter的 github 源码地址为:
     * https://github.com/mybatis/spring-boot-starter
     * <p>
     * mybatis-spring-boot-stater的官方文档地址:
     * http://www.mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/
     * <p>
     * mybatis 官方中文文档：
     * http://www.mybatis.org/mybatis-3/zh/java-api.html
     */

    /**
     * 查询所有
     *
     * @return
     */
    List<Person> selectList();
    Integer insertPerson( Person person );
}
